package tmproject.hlhj.fhp.tmvote.presenters

import com.example.mymvp.BasePresenter
import tmproject.hlhj.fhp.tmvote.beans.VoteBean
import tmproject.hlhj.fhp.tmvote.module.VoteModule
import tmproject.hlhj.fhp.tmvote.views.VoteView

/**
 * Created by Never Fear   on 2018\8\6 0006.
Never More....
 */
class VotePresenter : BasePresenter<VoteModule, VoteView>(), VoteModule.OnVoteResp {
    override fun createModule() {
        module=VoteModule()
        module?.listener=this
    }

    fun getVoteData(){
        module.getVoteData()
    }

    override fun voteResp(voteBean: VoteBean) {
        view?.gotVoteData(voteBean)
    }
}